fix the aacraid merge a bit more
Subsystems (2)
PATCH 1/1 fix the aacraid merge a bit more
drivers/scsi/aacraid/aachba.c +1 -4
@@ -33,7 +33,6 @@#include <linux/completion.h> #include <asm/semaphore.h> #include <asm/uaccess.h> -#define MAJOR_NR SCSI_DISK0_MAJOR/* For DEVICE_NR() */ #include <linux/blk.h> #include "scsi.h" #include "hosts.h"
@@ -967,9 +966,7 @@memset (inq_data_ptr,0 ,sizeof (struct inquiry_data )); inq_data_ptr->inqd_ver =2 ;/* claim compliance to SCSI-2 */ -if (!strstr (UTS_RELEASE ,"BOOT" )){// If this is not a RH driver disk kernel - inq_data_ptr->inqd_dtq =0x80 ;/* set RMB bit to one indicating that the medium is removable */ - } + inq_data_ptr->inqd_dtq =0x80 ;/* set RMB bit to one indicating that the medium is removable */ inq_data_ptr->inqd_rdf =2 ;/* A response data format value of two indicates that the data shall be in the format specified in SCSI-2 */ inq_data_ptr->inqd_len =31 ;/*Format for "pad2" is RelAdr | WBus32 | WBus16 | Sync | Linked |Reserved| CmdQue | SftRe */
drivers/scsi/aacraid/aacraid.h +2 -7
@@ -1,7 +1,6 @@//#define dprintk(x) printk x #define dprintk (x) -#include "compat.h" /*------------------------------------------------------------------------------ * D E F I N E S *----------------------------------------------------------------------------*/
@@ -1461,12 +1460,8 @@*/ static inline u32 cap_to_cyls (sector_t capacity,u32 divisor) { -#ifdef CONFIG_LBD -do_div (capacity, divisor); -#else - capacity /= divisor; -#endif -return (u32 ) capacity; +sector_div (capacity, divisor); +return (u32 )capacity; }const char *aac_driverinfo (struct Scsi_Host *);
drivers/scsi/aacraid/compat.h +0 -114
114 lines not on this page · raw message
drivers/scsi/aacraid/linit.c +0 -2
@@ -62,9 +62,7 @@MODULE_AUTHOR ("Red Hat Inc and Adaptec" );MODULE_DESCRIPTION ("Supports Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, and HP NetRAID-4M devices. http://domsch.com/linux/ or http://linux.adaptec.com" ); -#if LINUX_VERSION_CODE >KERNEL_VERSION (2 ,4 ,7 )MODULE_LICENSE ("GPL" ); -#endif MODULE_PARM (nondasd,"i" );MODULE_PARM_DESC (nondasd,"Control scanning of hba for nondasd devices. 0=off, 1=on" );MODULE_PARM (paemode,"i" );